﻿namespace DeltaGroup.WheelOfJeopardy.UI.ViewModel
{

    using DeltaGroup.WheelOfJeopardy.Model;

    public class CategoryViewModel : BaseViewModel
    {
        #region Fields

        private bool _allowSelection;

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Initializes a new instance of the <see cref="CategoryViewModel"/> class.
        /// </summary>
        /// <param name="category">The category.</param>
        public CategoryViewModel(Category category)
        {
            Category = category;
            _allowSelection = false;
        }

        #endregion Constructors

        #region Properties

        /// <summary>
        /// Gets or sets a value indicating whether [allow selection].
        /// </summary>
        /// <value><c>true</c> if [allow selection]; otherwise, <c>false</c>.</value>
        public bool AllowSelection
        {
            get { return _allowSelection; }
            set
            {
                _allowSelection = value;
                FirePropertyChanged("AllowSelection");
            }
        }

        /// <summary>
        /// Gets or sets the category.
        /// </summary>
        /// <value>The category.</value>
        public Category Category
        {
            get; private set;
        }

        #endregion Properties
    }
}